﻿<UserControl x:Class="Save_Editor.Controls.ctrlDefenceData"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:m="clr-namespace:Save_Editor.Controls"
             mc:Ignorable="d" Height="340" Width="520">
    <UserControl.Resources>
        <m:NullBoolToBool x:Key="nbTob" />
    </UserControl.Resources>
    <Grid>
        <GroupBox Header="Defence Properties" Margin="6,6,6,6" Name="groupBox1">
            <Grid>
                <Label Content="Defence Class Name" Height="28" HorizontalAlignment="Left" Margin="6,40,0,0" VerticalAlignment="Top" />
                <Label Content="{Binding DefenceClassName}" Height="28" Margin="130,40,6,0" VerticalAlignment="Top" />
                <Label Content="{Binding DisplayName}" Height="28" Margin="6,6,6,0" VerticalAlignment="Top" />
                <Label Content="Completed Model" Height="28" HorizontalAlignment="Left" Margin="6,69,0,0" VerticalAlignment="Top" Width="118" />
                <ComboBox Height="23" Margin="130,74,6,0" VerticalAlignment="Top" Text="{Binding CompletedModel}" Name="cmbModel" IsEditable="True" />
                <CheckBox Content="Is Under Construction" Height="16" HorizontalAlignment="Left" Margin="6,171,0,0" VerticalAlignment="Top" IsChecked="{Binding IsUnderConstruction, Converter={StaticResource nbTob}}" Width="150" />
                <Label Content="Guid" Height="28" HorizontalAlignment="Left" Margin="89,103,0,0" VerticalAlignment="Top" />
                <Label Content="ParentGuid" Height="28" HorizontalAlignment="Left" Margin="55,137,0,0" VerticalAlignment="Top" />
                <Label Content="{Binding Guid}" Height="28" Margin="130,103,0,0" VerticalAlignment="Top" HorizontalAlignment="Left" Width="278" />
                <Label Content="{Binding ParentGuid}" Height="28" Margin="130,137,0,0" VerticalAlignment="Top" HorizontalAlignment="Left" Width="278" />
                <Label Content="Location" Height="28" HorizontalAlignment="Left" Margin="10,199,0,0" Name="label1" VerticalAlignment="Top" />
                <Label Content="Rotation" Height="28" HorizontalAlignment="Left" Margin="10,245,0,0" VerticalAlignment="Top" />
                <m:ctrlPositionData Margin="71,193,0,0" HorizontalAlignment="Left" VerticalAlignment="Top" DataContext="{Binding Position}" Height="34" />
                <m:ctrlRotationData Margin="71,239,0,0" HorizontalAlignment="Left" VerticalAlignment="Top" DataContext="{Binding Rotation}"/>
            </Grid>
        </GroupBox>
    </Grid>
</UserControl>
